export interface SelectForm {
  familyId: number | null,
  tagIds: number[],
  incomeExpenseType: number | null,
  familyMemberId: number | null,
  sourceType: number | null,
  startTime: string | null,
  endTime: string | null,
  pageNum: number,
  pageSize: number
}

//账单标签
export interface Tag {
  /**
   * id
   */
  id: number,

  /**
   * 名字
   */
  name: string,
}

/**
 * 家庭
 */
export interface Family {
  /**
   * id
   */
  id: number,

  /**
   * 名字
   */
  name: string,
}

/**
 * 成员
 */
export interface FamilyMember {
  /**
   * id
   */
  id: number,

  /**
   * 名字
   */
  name: string,
}

/**
 * 详情
 */
export interface DetailRes {
  id: number | null,
  family_id: number | null,
  content: string | null,
  amount: number | null,
  tag_ids: number[] | null,
  income_expense_type: number | null,
  family_member_id: number | null,
  family_member_name: string | null,
  source_type: number | null,
  create_time: string | null,
}

//详情
export interface Detail {
  id: number | null,
  familyId: number | null,
  familyName: string | null,
  content: string | null,
  amount: number | null,
  tagId: number | null,
  tagName: string | null,
  incomeExpenseType: number | null,
  memberId: number | null,
  memberName: string | null,
  sourceType: number | null,
  date: string | null,
  remark: string;
}

/**
 * 明细分页
 */
export interface DetailPage {
  records: Detail[],
  current: number,
  total: number,
  size: number,
  pages: number
}


/**
 * 字典
 */
export interface Dictionary {
  code: number,
  desc: string,
  bgColor: string;
  color: string;
}

